
// MFCDlg.h : header file
//

#pragma once
#include "afxwin.h"
#include "afxcmn.h"


// CMFCDlg dialog
class CMFCDlg : public CDialogEx
{
// Construction
public:
	CMFCDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_MFC_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	// Button reset value
	CButton m_btnReset;
	afx_msg void OnBnClickedReset();
	CEdit m_txtName;
	CEdit m_txtBirthday;
	CEdit m_txtAddress;
	CEdit m_txtGradSchool;
	CComboBox m_cbGradSchool;
	afx_msg void OnCbnEditchangeCombogradschool();
	afx_msg void OnBnClickedOk();
	CListBox m_lstStaff;
	CListCtrl m_ctrList;
	CString m_valName;
	CString m_valBirthday;
	CString m_valAddress;
	CString m_valGradSchool;
	int m_rdSex;
	afx_msg void OnBnClickedRadiomale();
	afx_msg void OnBnClickedRadiofemale();
	afx_msg void OnHdnItemclickListstaff(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnLvnItemchangedListstaff(NMHDR *pNMHDR, LRESULT *pResult);
	CButton m_ctrlMale;
	CButton m_rbnFemale;
	afx_msg void OnEnUpdateEditname();
	bool IsNumber(CString s);
};
